package study.Day_5;
/**
 * @Classname: MainTest
 * @Description: 描述
 * @Date: 2021/9/28
 * @Author: huwei
 */
public class MainTest {
    public static void main(String[] args) {
        String s = "ababa";
        String s1 = "cbbd";
        String s2 = "a";
        Day_five d = new Day_five();
        String longestPalindrome = d.longestPalindrome(s);
        Day_five_1 d1 = new Day_five_1();
        String longestPalindrome1 = d1.longestPalindrome(s);

        System.out.println("状态转移法:"+longestPalindrome);
        System.out.println("中心扩散法:"+longestPalindrome1);
    }
}